#ifndef __dns_tactics_h__
#define __dns_tactics_h__ 1
#include "sys.h"
#include "cJSON.h"
typedef struct dnsTactics{
    char ip[128];
    uint16_t port;
    char type[16];
    char domainName[128];
    int timeout;
    char businessTag[64];
    char kafkaTopic[64];
    TAILQ_ENTRY(dnsTactics) entry;
}dnsTactics_t;
TAILQ_HEAD(dnsTactics_head, dnsTactics);

typedef struct{
    char *taskId;
    char *version;
    char *kafka_url;
    int count;
    struct dnsTactics_head head;
    cJSON *result;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
}dns_tactics_t;

void *do_dns_tactics(void *arg);
#endif